route add default gw 192.168.1.254 eth0

1.#cd /usr/local/src/
2.#wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
3.#sudo rpm -ivh epel-release*
4.#yum repolist
5.#sudo yum install phpmyadmin
6.#nano /etc/httpd/conf.d/phpMyAdmin.conf

6.1 Soan noi dung file cau hinh phpMyAdmin.conf sau:
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default  
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL

Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
     #  Require ip 127.0.0.1
        Require ip 192.168.77.129 ---->IP cua may CentOS
        Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     # Deny from All
     # Allow from 127.0.0.1
       Allow from All --->Cho phep truy cap
     Allow from ::1
   </IfModule>
</Directory>

<Directory /usr/share/phpMyAdmin/setup/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
     # Require ip 127.0.0.1
       Require ip 192.168.77.129 ---->IP cua may CentOS
       Require ip ::1
     </RequireAny>

6.2 Ctrl +X --->SAVE FILE CAU HINH

7.#service httpd restart --->Khoi dong lai dich vu

8.#Truy cap http://192.168.77.129/phpmyadmin ----->Nhap username va Password